<?php
    header("Content-Type: text/html; charset=utf8");
    header("Access-Control-Allow-Credentials:true");
    header('Access-Control-Allow-Origin:http://localhost:3000');//允许所有来源访问
    header('Access-Control-Allow-Method:GET,POST,PATCH,PUT,OPTIONS,DELETE');//允许访问的方式
    header("Access-Control-Allow-Headers: Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild");

    $res=[];
    $res['status'] = 0;
    $res['data'] = [];
    $res['msg'] = '';

?>